package com.onlyxiahui.common.action.description.handler;

import com.onlyxiahui.common.action.description.DocumentContext;
import com.onlyxiahui.common.action.description.bean.ModuleData;

/**
 * 
 * <br>
 * Date 2019-11-06 11:15:05<br>
 * 
 * @author XiaHui [onlovexiahui@qq.com]<br>
 * @since 1.0.0
 */

public interface ModuleHandler {

	/**
	 * <br>
	 * Date 2020-04-10 12:26:51<br>
	 * 
	 * @param context
	 * @param moduleClass
	 * @return
	 * @since 1.0.0
	 */
	public boolean support(DocumentContext context, Class<?> moduleClass);

	/**
	 * <br>
	 * Date 2020-04-10 12:27:00<br>
	 * 
	 * @param context
	 * @param moduleClass
	 * @return
	 * @since 1.0.0
	 */
	public ModuleData handle(DocumentContext context, Class<?> moduleClass);
}
